<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.staticfile.org/echarts/4.3.0/echarts.js"></script>
</head>
<body>

    <div id="main" style="width: 600px;height:400px;border:3px solid red"></div>
    <script type="text/javascript">
    var myChart = echarts.init(document.getElementById('main'));

        option = {
            title: {
                text: '某APP用户分层',
                subtext: '试一下',
                left: 'center'
            },
            tooltip: {
                trigger: 'item'
            },
            legend: {
                orient: 'vertical',
                left: 'right',
            },
            series: [
                {
                    name: '访问来源',
                    type: 'pie',
                    radius: '50%',
                    data: [
                        {value: 183472, name: '流失用户'},
                        {value: 6546, name: '回流用户'},
                        {value: 524, name: '连续活跃用户'},
                        {value: 91, name: '新用户'},
                        {value: 0, name: '活跃用户'}
                    ],
                    emphasis: {
                        itemStyle: {
                            shadowBlur: 10,
                            shadowOffsetX: 0,
                            shadowColor: 'rgba(0, 0, 0, 0.5)'
                        }
                    }
                }
            ]
        };

        myChart.setOption(option);
    </script>
</body>
</html>